<template>
  <h1>Home 主页</h1>
</template>

<script setup lang="ts">
import { useRoute } from "vue-router";

// 相对于 this.$route
const route = useRoute();
console.log(route);
console.log("基本路径信息", route.path); //  /home
console.log("完整路径信息", route.fullPath); //  /home
</script>


